package com.hjm.project.agentInfo.AgentCountData.utils;


import com.hjm.project.gears_info.domain.GearsInfo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName GradeMoney
 * @Deacription 档位金额
 * @Author Administrator
 * @Version 1.0
 **/
public class GradeMoney {

    /**
     * V1	销售代表	0-2000000
     */
    public static BigDecimal V1 = new BigDecimal("200000.00");

    /**
     * V2	销售主管	2000000-6000000
     */
    public static  BigDecimal V2 = new BigDecimal("6000000.00");

    /**
     * V3	营销助理	6000000-12000000
     */
    public static  BigDecimal V3 = new BigDecimal("12000000.00");

    /**
     * V4	营销主管	12000000-20000000
     */
    public static  BigDecimal V4 = new BigDecimal("20000000.00");

    /**
     * V5	营销经理	20000000-50000000
     */
    public static  BigDecimal V5 = new BigDecimal("50000000.00");

    /**
     * V6	高级经理	50000000-100000000
     */
    public static  BigDecimal V6 = new BigDecimal("100000000.00");

    /**
     * V7	营销总监	100000000-300000000
     */
    public static  BigDecimal V7 = new BigDecimal("300000000.00");

    /**
     * V8	高级总监	300000000-700000000
     */
    public static  BigDecimal V8 = new BigDecimal("700000000.00");

    /**
     * V9	资深总监	700000000-1500000000
     */
    public static  BigDecimal V9 = new BigDecimal("1500000000.00");

    /**
     * V10	咨询委员会	1500000000-200000000000
     */
    public static  BigDecimal V10 = new BigDecimal("200000000000.00");

    //初始化档位信息
    public static void  initGrade(List<GearsInfo> gradeInfos){
        for (GearsInfo gradeInfo : gradeInfos) {
            String[] split = gradeInfo.getPaySection().split("-");
            if (gradeInfo.getGrade().equals("V1")) {
                V1 = new BigDecimal(split[1]);
            } else if (gradeInfo.getGrade().equals("V2")){
                V2 = new BigDecimal(split[1]);
            } else if (gradeInfo.getGrade().equals("V3")){
                V3 = new BigDecimal(split[1]);
            } else if (gradeInfo.getGrade().equals("V4")){
                V4 = new BigDecimal(split[1]);
            } else if (gradeInfo.getGrade().equals("V5")){
                V5 = new BigDecimal(split[1]);
            } else if (gradeInfo.getGrade().equals("V6")){
                V6 = new BigDecimal(split[1]);
            } else if (gradeInfo.getGrade().equals("V7")){
                V7 = new BigDecimal(split[1]);
            } else if (gradeInfo.getGrade().equals("V8")){
                V8 = new BigDecimal(split[1]);
            } else if (gradeInfo.getGrade().equals("V9")){
                V9 = new BigDecimal(split[1]);
            } else if (gradeInfo.getGrade().equals("V10")){
                V10 = new BigDecimal(split[1]);
            }
        }
    }



    public static void main(String[] args) {

    }



}
